<%@page import="entity.User"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<!-- ${online_userCount} EL表达式，可以获取online_userCount的值 -->
当前在线人数：${online_userCount}<br/>

<%
	ArrayList<User> userList = (ArrayList<User>) request.getServletContext().getAttribute("userList");
	if(userList != null)
	{
		for(int i = 0 ; i < userList.size(); i++)
		{
			out.print("SessionID:" + userList.get(i).getSessionID() + "  ");
			out.print("IP:" + userList.get(i).getIp() + "  ");
			out.print("FirsTime:" + userList.get(i).getFirstTime() + "  ");
			out.print("<br/>");
		}
	}
%>

</body>
</html>